
/* Scroll ----------------------------------------------------- */

function saveScrollPosition(divId) {

	var scrollPosition = document.getElementById(divId).scrollTop;
	sessionStorage.setItem(divId + "-scroll", scrollPosition);
}

function restoreScrollPosition(divId) {

	var scrollPosition = sessionStorage.getItem(divId + "-scroll");
				
	if ( scrollPosition != null ) {
		document.getElementById(divId).scrollTop = scrollPosition;
	}
}
/* ------------------------------------------------------------ */